/*
 * @Descripttion: 码相关
 * @Author: 何伟伦 weilun@ssc-hn.com
 * @Date: 2024-04-12
 * @LastEditors: 何伟伦 weilun@ssc-hn.com
 * @LastEditTime: 2024-04-18
 */
import request from '/@/api/request'

/** 批次相关码列表 */
export const requestGetDetailBatchList = (data: GetCodeDetailsTypes.IRequest) => {
  return request.post<IBaseResponse<GetCodeDetailsTypes.IResponse[]>>('/business/tracecode/codeInfo/checkDetails/V1', data)
}
/** 码作废 */
export const requestCancelCode = (data: CancelCodeTypes.IRequest) => {
  return request.get<IBaseResponse<CancelCodeTypes.IResponse>>('/business/tracecode/codeInfo/cancel/V1', data)
}
/** 码批量作废 */
export const requestCancelBatchCode = (data: CancelCancelCodeTypes.IRequest) => {
  return request.post<IBaseResponse<CancelCancelCodeTypes.IResponse>>('/business/tracecode/codeInfo/batchCancel/V1', data)
}
/** 码详情，获取码相关信息 */
export const requestCodeDetail = (data: UpCodeDetailsTypes.IRequest) => {
  return request.post<IBaseResponse<UpCodeDetailsTypes.IResponse>>('/business/tracecode/codeInfo/codeDetail/V1', data)
}
